<!DOCTYPE html>
<?php
session_start();
if ($_SESSION['logado'] != 1) {
    echo " <script>  
        alert('Ops! Que feio um erro ocorreu, desculpa! Nossos macaquinhos est\u00e3o trabalhando para melhor atende-los!');
        window.history.back();
        </script>";
    exit;
}
?>
<html lang="br">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>..::Pet Shop - Admin::..</title>
        <!--<link rel="icon" href="../../favicon.ico">-->

        <!-- Bootstrap -->
        <link href="css/bootstrap.min.css" rel="stylesheet">
        <!-- CSS JQuery -->
        <link href="css/jquery-ui.min.css" rel="stylesheet">

        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="js/bootstrap.min.js"></script>

        <script src="js/jquery-ui.min.js"></script>

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>    
    <body>
        <!-- Navegação -->
        <header><?php include_once 'src/menu.php'; ?></header>
        <!-- Breadcrumbs -->
        <header><?php include_once 'src/breadcrumbs.php'; ?></header>
        <!-- Conteudo / menu -->
        <div class="container">
            <?php
            if (isset($_GET['s'])) {
                switch ($_GET['s']) {
                    case "home": include_once 'src/home.php';
                        break;
                    case "ccliente": include_once 'src/ccliente.php';
                        break;
                    case "crelatorios": include_once 'src/crelatorios.php';
                        break;
                    case "cservico": include_once 'src/cservico.php';
                        break;
                    case "cvenda": include_once 'src/cvenda.php';
                        break;
                    case "cServicosComprados": include_once 'src/cServicosComprados.php';
                        break;

                    default : include_once 'src/home.php';
                }
            } else {
                include_once 'src/home.php';
            }
            ?>
        </div>
        <!--Rodape--> 
        <footer><?php include_once 'src/footer.php'; ?></footer>

    </body>
</html>

